﻿<%@ Page Language="C#" %>
<%@ Register TagPrefix="aspxform" Namespace="XFormDesigner.Framework.Web.UI" Assembly="XFormDesigner.Framework" %>
<script runat="server">

    // Insert page code here
    //

</script>
<html xmlns:XForm="xmlns:xform">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <title>汇总审批单</title>
    <style>
    /***************************************系统自动生成不可修改************************************************/
    BODY {FONT-SIZE: 12px; FONT-FAMILY: verdana}
    TABLE {border-collapse: collapse; FONT-SIZE: 12px; FONT-FAMILY: verdana}
    P {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; FONT-SIZE: 12px; FONT-FAMILY: verdana}
    TD {padding:1px}
    TD.NoPadding {PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px}
    /*INPUT {height: 15px}*/
    INPUT.UL {BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: #33ff33 1px solid}
    TEXTAREA {FONT-SIZE:12px}
    input {vertical-align:middle;/*margin-right:-3px*/}
    /***************************************系统自动生成不可修改************************************************/

    /***************************************修改框架 CSS 可根据要求修改************************************************/
    /* 修改框架 CSS  browserbutton  */
    .yz-xform-field-browserbutton {
        padding: 0px;
        margin:0px;
        border-style: None;
        height: 30px;
        vertical-align: middle;
        font-size:15;
        font-weight: bolder;
        background-color: transparent;
    }
    /* 修改框架 CSS  field-button  */
    .yz-xform-field-button {
        background-color: transparent;
        border-style: None;
    }


    /***************************************修改框架 CSS 可根据要求修改************************************************/

    </style>
    <!--引入表单CSS -->
    <link rel="stylesheet" type="text/css" href="~/ycsoft/style/forms/YCFormLightSteelBlue.css" />
    <!--引入公共js-->
    <script type="text/javascript" src="../../../../../ycsoft/js/common.js"></script>

     <!--设置表单公共方法不可修改-->
    <script type="text/javascript">

        //发起职位变动后设置后台部门编码、部门名称、全名
        function SelectPosition(MemberFullName,LeaderTitle,Department,Level,ParentOUName,ParentOUCode)
        {
            agent.setEleValue('txtmappdeptname',ParentOUName);
            agent.setEleValue('txtmappdeptcode',ParentOUCode);
            agent.setEleValue('txtmappmemberfullname',MemberFullName);
            //JS赋值后，更新相关表达式
            XFormOnChange(Ext.select("div[id='txtmappdeptcode'] input").elements[0]);

        }
     </script>

     <!--提供表单常用方法-->
     <script type="text/javascript">

        //页面加载完成（绑定数据可能未加载完成）
        Ext.onReady(function(){
            debugger;
        });

        //数据加载完成（绑定数据加载完成）
        function OnAfterLoad() {
            debugger;
        }
        //提交
        function OnSubmit(){

        }


    </script>
</head>

<body class="yc-body">
    <form runat="server">
        <!-- Insert content here -->
        <table width="98%" align="center" class="yc-xform-table-main">
            <tbody>
                <tr class="yc-xform-tr-title">
                    <td width="25%">
                        <asp:Image id="Image1" runat="server" ImageUrl="~\ycsoft\style\forms\images\LOGO.jpg" align="left"></asp:Image>
                    </td>
                    <td class="yc-xform-td-title">
                        <aspxform:XLabel id="XLabel1" runat="server" BorderStyle="None" TextAlign="Center" text="汇总审批单" Width="99%"></aspxform:XLabel>
                    </td>
                    <td width="25%">
                        <aspxform:XLabel id="XLabel2" runat="server" BorderStyle="None" TextAlign="Center" text="编号:" Width="15%" ValueToDisplayText></aspxform:XLabel>
                        <aspxform:XLabel id="XLabel3" runat="server" BorderStyle="None" ValueToDisplayText XDataBind="BPMDATA:fa_summary_approval_m.code"></aspxform:XLabel>
                    </td>
                </tr>
            </tbody>
        </table>
        <table width="98%" align="center" class="yc-xform-table-main">
            <tbody>
                <!--表头行 yc-xform-tr-th -->
                <tr class="yc-xform-tr-th">
                    <td class="yc-xform-td-last" colspan="4">
                        <aspxform:XLabel id="lblm4" runat="server" text="申请人信息" ValueToDisplayText></aspxform:XLabel>
                    </td>
                </tr>
                <tr>
                    <td width="15%" class="yc-xform-td">
                        <aspxform:XLabel id="lblmappusername" runat="server" BorderStyle="None" TextAlign="Right" text="申请人:" Width="99%" ValueToDisplayText></aspxform:XLabel>
                    </td>
                    <td width="35%" class="yc-xform-td">
                        <aspxform:XTextBox id="txtmappusername" runat="server" XDataBind="BPMDATA:fa_summary_approval_m.app_user_name" DisableExpress="1" BorderColor="#DCDCDC" BorderWidth="1" height="100%" width="100%"></aspxform:XTextBox>
                    </td>
                    <td width="15%" class="yc-xform-td">
                        <aspxform:XLabel id="lblmappdate" runat="server" BorderStyle="None" TextAlign="Right" text="申请日期:" Width="99%" ValueToDisplayText></aspxform:XLabel>
                    </td>
                    <td class="yc-xform-td-last">
                        <aspxform:XDateTimePicker id="dtpmappdate" runat="server" XDataBind="BPMDATA:fa_summary_approval_m.app_date" DisableExpress="" BorderColor="#DCDCDC" BorderWidth="1" height="100%" width="100%"></aspxform:XDateTimePicker>
                    </td>
                </tr>
                <tr>
                    <td width="15%" class="yc-xform-td">
                        <aspxform:XLabel id="lblmareaname" runat="server" BorderStyle="None" TextAlign="Right" text="大区:" Width="99%" ValueToDisplayText></aspxform:XLabel>
                    </td>
                    <td width="35%" class="yc-xform-td">
                        <aspxform:XTextBox id="txtmareaname" runat="server" XDataBind="BPMDATA:fa_summary_approval_m.area_name" DisableExpress="" BorderColor="#DCDCDC" BorderWidth="1" height="100%" width="90%" ReadOnly="True"></aspxform:XTextBox>
                        <aspxform:XDataBrowserButton id="XDataBrowserButton1" runat="server" Width="21px" XDataSource="DataSource:BPMDATA;TableName:doc_area" DataMap="code->BPMDATA:fa_summary_approval_m.area_code;name->BPMDATA:fa_summary_approval_m.area_name" DisplayColumns="code:编码;name:名称"></aspxform:XDataBrowserButton>
                    </td>
                    <td width="15%" class="yc-xform-td">
                        &nbsp; 
                    </td>
                    <td width="35%" class="yc-xform-td-last">
                        &nbsp; 
                    </td>
                </tr>
                <tr>
                    <td width="15%" class="yc-xform-td">
                        <aspxform:XLabel id="lblmbudgettypename" runat="server" BorderStyle="None" TextAlign="Right" text="预算类型:" Width="99%" ValueToDisplayText></aspxform:XLabel>
                    </td>
                    <td width="35%" class="yc-xform-td">
                        <aspxform:XTextBox id="txtmbudgettype" runat="server" XDataBind="BPMDATA:fa_summary_approval_m.budget_type_name" DisableExpress="" BorderColor="#DCDCDC" BorderWidth="1" height="100%" width="100%"></aspxform:XTextBox>
                    </td>
                    <td width="15%" class="yc-xform-td">
                        <aspxform:XLabel id="lblmbudgetbalance" runat="server" BorderStyle="None" TextAlign="Right" text="预算余额:" Width="99%" ValueToDisplayText></aspxform:XLabel>
                    </td>
                    <td class="yc-xform-td-last">
                        <aspxform:XTextBox id="txtmbudgetbalance" runat="server" TextAlign="Right" ValueToDisplayText XDataBind="BPMDATA:fa_summary_approval_m.budget_balance_amt" DisableExpress="" BorderColor="Gainsboro" BorderWidth="1px" height="100%" width="100%" Max="0" Min="0" Format="type:number;.2" HiddenInput="False" Value></aspxform:XTextBox>
                    </td>
                </tr>
                <tr class="yc-xform-tr-last">
                    <td class="yc-xform-td-wrapTable" colspan="4">
                        <div class="yc-xform-div-XScroll">
                            <table align="center" class="yc-xform-table-sub" dynamicarea="2,1">
                                <tbody>
                                    <tr class="yc-xform-tr-th">
                                        <td height="17" class="yc-xform-td-last" colspan="7">
                                            <aspxform:XLabel id="lblTitle1" runat="server" BorderStyle="None" text="审批明细" ValueToDisplayText></aspxform:XLabel>
                                        </td>
                                    </tr>
                                    <tr class="yc-xform-tr-th2">
                                        <td width="26" height="17" class="yc-xform-td">
                                            <aspxform:XLabel id="lblt1rowno" runat="server" BorderStyle="None" TextAlign="center" text="序号" Width="99%" ValueToDisplayText></aspxform:XLabel>
                                        </td>
                                        <td width="157" class="yc-xform-td">
                                            <aspxform:XLabel id="lblt1billcode" runat="server" BorderStyle="None" TextAlign="center" text="单据号" Width="99%" ValueToDisplayText></aspxform:XLabel>
                                        </td>
                                        <td width="157" class="yc-xform-td">
                                            <aspxform:XLabel id="lblt1reimbursedeptname" runat="server" BorderStyle="None" TextAlign="center" text="部门" Width="99%" ValueToDisplayText></aspxform:XLabel>
                                        </td>
                                        <td width="157" class="yc-xform-td">
                                            <aspxform:XLabel id="lblt1jobposition" runat="server" BorderStyle="None" TextAlign="center" text="职位" Width="99%" ValueToDisplayText></aspxform:XLabel>
                                        </td>
                                        <td width="157" class="yc-xform-td">
                                            <aspxform:XLabel id="lblt1reimbursename" runat="server" BorderStyle="None" TextAlign="center" text="报销人" Width="99%" ValueToDisplayText></aspxform:XLabel>
                                        </td>
                                        <td width="157" class="yc-xform-td">
                                            <aspxform:XLabel id="lblt1reimbursetotalamt" runat="server" BorderStyle="None" TextAlign="center" text="总报销金额" Width="99%" ValueToDisplayText></aspxform:XLabel>
                                        </td>
                                        <td width="110" class="yc-xform-td-last">
                                            <aspxform:XLabel id="XLabel4" runat="server" BorderStyle="None" TextAlign="center" text="明细" Width="99%" ValueToDisplayText></aspxform:XLabel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="21" class="yc-xform-td">
                                            <aspxform:XGridLineNo id="lnot1" runat="server" BorderStyle="None" TextAlign="Center" Width="100%" XDataBind="BPMDATA:fa_summary_approval_t_details.rowno" BorderWidth="0px" BackColor="White">1</aspxform:XGridLineNo>
                                            <aspxform:XTextBox id="txtreimbursedeptcode" runat="server" Width="100%" XDataBind="BPMDATA:fa_summary_approval_t_details.reimburse_dept_code" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True"></aspxform:XTextBox>
                                            <aspxform:XTextBox id="txtreimbursecode" runat="server" Width="100%" XDataBind="BPMDATA:fa_summary_approval_t_details.reimburse_code" BorderColor="#DCDCDC" BorderWidth="1" HiddenInput="True"></aspxform:XTextBox>
                                        </td>
                                        <td align="right" class="yc-xform-td">
                                            <aspxform:XDataBrowserButton id="XDataBrowserButton2" runat="server" Width="21px" XDataSource="DataSource:BPMDATA;TableName:v_fa_summary_approval" DataMap="code->BPMDATA:fa_summary_approval_t_details.bill_code;app_user_code->BPMDATA:fa_summary_approval_t_details.reimburse_code;app_user_name->BPMDATA:fa_summary_approval_t_details.reimburse_name;app_dept_code->BPMDATA:fa_summary_approval_t_details.reimburse_dept_code;app_dept_name->BPMDATA:fa_summary_approval_t_details.reimburse_dept_name;total_travel_amt->BPMDATA:fa_summary_approval_t_details.reimburse_total_amt;leadertitle->BPMDATA:fa_summary_approval_t_details.leader_title" DisplayColumns="code:单据号;app_user_name:报销人;app_dept_name:部门;total_travel_amt:总报销金额;leadertitle:职位"></aspxform:XDataBrowserButton>
                                            <aspxform:XTextBox id="txtt1billcode" runat="server" XDataBind="BPMDATA:fa_summary_approval_t_details.bill_code" DisableExpress="" BorderColor="#DCDCDC" BorderWidth="1" height="100%" width="88%" ReadOnly="True"></aspxform:XTextBox>
                                        </td>
                                        <td class="yc-xform-td">
                                            <aspxform:XTextBox id="txtt1reimbursedeptname" runat="server" XDataBind="BPMDATA:fa_summary_approval_t_details.reimburse_dept_name" DisableExpress="" BorderColor="#DCDCDC" BorderWidth="1" height="100%" width="100%" ReadOnly="True"></aspxform:XTextBox>
                                        </td>
                                        <td class="yc-xform-td">
                                            <aspxform:XTextBox id="txtt1jobposition" runat="server" XDataBind="BPMDATA:fa_summary_approval_t_details.leader_title" DisableExpress="" BorderColor="#DCDCDC" BorderWidth="1" height="100%" width="100%" ReadOnly="True"></aspxform:XTextBox>
                                        </td>
                                        <td class="yc-xform-td">
                                            <aspxform:XTextBox id="txtt1reimbursename" runat="server" XDataBind="BPMDATA:fa_summary_approval_t_details.reimburse_name" DisableExpress="" BorderColor="#DCDCDC" BorderWidth="1" height="100%" width="100%" ReadOnly="True"></aspxform:XTextBox>
                                        </td>
                                        <td class="yc-xform-td">
                                            <aspxform:XTextBox id="txtt1reimbursetotalamt" runat="server" TextAlign="Right" ValueToDisplayText XDataBind="BPMDATA:fa_summary_approval_t_details.reimburse_total_amt" DisableExpress="" BorderColor="Gainsboro" BorderWidth="1px" height="100%" width="100%" Max="0" Min="0" ReadOnly="True" Format="type:currency;.2" HiddenInput="False" Value></aspxform:XTextBox>
                                        </td>
                                        <td class="yc-xform-td-last">
                                            <a href="../../../ExcelTemplate/declaredexpensesbudgetplan.aspx">报销单明细</a> 
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="21" align="center" class="yc-xform-td">
                                            <aspxform:XAddBlockButton id="btnAdd1" runat="server" Width="21px" DisableExpress="Global.StepName!='开始'" DataSource="BPMDATA" TableName="fa_summary_approval_t_details" Height="21px" PrintOut="False" Text="+"></aspxform:XAddBlockButton>
                                        </td>
                                        <td class="yc-xform-td" colspan="4">
                                            <aspxform:XTextBox id="XTextBox2" runat="server" TextAlign="Right" BorderColor="#DCDCDC" BorderWidth="1" height="100%" width="100%">合计：</aspxform:XTextBox>
                                        </td>
                                        <td class="yc-xform-td">
                                            <aspxform:XTextBox id="txtt1totalreimbursetotalamt" runat="server" TextAlign="Right" XDataBind="BPMDATA:fa_summary_approval_m.total_amt" DisableExpress="1" BorderColor="#DCDCDC" BorderWidth="1" height="100%" width="100%" Format="type:number;.2" Express="sum(BPMDATA:fa_summary_approval_t_details.reimburse_total_amt)"></aspxform:XTextBox>
                                        </td>
                                        <td class="yc-xform-td-last">
                                            &nbsp; 
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <br />
        <!-- 审批记录 无特殊情况不得删除-->
        <table width="98%" align="center" class="yc-xform-table-main">
            <tbody>
                <tr>
                    <td height="40" align="center">
                        <aspxform:XSignTrace id="XSignTrace1" runat="server" Width="100%" BorderColor="#dcdcdc" BorderWidth="1"></aspxform:XSignTrace>
                    </td>
                </tr>
            </tbody>
        </table>
        <br />
        <table align="center" border="0" cellspacing="0" cellpadding="0" hiddenexpress="1">
            <tbody>
                <tr>
                    <td width="266" height="18">
                        隐藏字段 
                    </td>
                    <td width="267">
                        隐藏控件 
                    </td>
                    <td width="267">
                        验证 
                    </td>
                </tr>
                <tr>
                    <td height="22">
                        审批步骤</td>
                    <td>
                        <aspxform:XTaskStatus id="XTaskStatus1" runat="server"></aspxform:XTaskStatus>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td height="22">
                        主键</td>
                    <td>
                        <aspxform:XTextBox id="txtmid" runat="server" Width="100%" XDataBind="BPMDATA:fa_summary_approval_m.id" BorderColor="#DCDCDC" BorderWidth="1" height="100%"></aspxform:XTextBox>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td height="22">
                        TaskID</td>
                    <td>
                        <aspxform:XTextBox id="txtmTaskID" runat="server" Width="100%" XDataBind="BPMDATA:fa_summary_approval_m.TaskID" BorderColor="#DCDCDC" BorderWidth="1" height="100%"></aspxform:XTextBox>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td height="22">
                        申请人编码</td>
                    <td>
                        <aspxform:XTextBox id="txtmappusercode" runat="server" Width="100%" XDataBind="BPMDATA:fa_summary_approval_m.app_user_code" BorderColor="#DCDCDC" BorderWidth="1" height="100%"></aspxform:XTextBox>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td height="22">
                        部门编码</td>
                    <td>
                        <aspxform:XTextBox id="txtmappdeptcode" runat="server" Width="100%" XDataBind="BPMDATA:fa_summary_approval_m.app_dept_code" BorderColor="#DCDCDC" BorderWidth="1" height="100%"></aspxform:XTextBox>
                    </td>
                    <td>
                        <aspxform:XDropDownList id="XDropDownList1" runat="server" XDataSource="DataSource:BPMDATA;TableName:v_bpm_sys_ou_members;Filter:UserAccount->BPMDATA:fa_summary_approval_m.app_user_code" DataMap="Code->BPMDATA:fa_summary_approval_m.app_dept_code" ValueColumn="OUName" DisplayColumn="OUName"></aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td height="22">
                        部门</td>
                    <td>
                        <aspxform:XTextBox id="txtmappdeptname" runat="server" Width="100%" XDataBind="BPMDATA:fa_summary_approval_m.app_dept_name" BorderColor="#DCDCDC" BorderWidth="1" height="100%"></aspxform:XTextBox>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td height="22">
                        公司编码</td>
                    <td>
                        <aspxform:XTextBox id="txtmappcompanycode" runat="server" Width="100%" XDataBind="BPMDATA:fa_summary_approval_m.app_company_code" BorderColor="#DCDCDC" BorderWidth="1" height="100%"></aspxform:XTextBox>
                    </td>
                    <td>
                        <aspxform:XDropDownList id="ddlvarcompanyinfo" runat="server" XDataSource="DataSource:BPMDATA;TableName:v_comm_get_bpmcompany_by_dept_code;Filter:scode->BPMDATA:fa_summary_approval_m.app_dept_code" DataMap="OUName->BPMDATA:fa_summary_approval_m.app_company_name;Code->BPMDATA:fa_summary_approval_m.app_company_code" ValueColumn="Code" DisplayColumn="OUName"></aspxform:XDropDownList>
                    </td>
                </tr>
                <tr>
                    <td height="22">
                        公司</td>
                    <td>
                        <aspxform:XTextBox id="txtmappcompanyname" runat="server" Width="100%" XDataBind="BPMDATA:fa_summary_approval_m.app_company_name" BorderColor="#DCDCDC" BorderWidth="1" height="100%"></aspxform:XTextBox>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td height="22">
                        大区编码</td>
                    <td>
                        <aspxform:XTextBox id="txtmareacode" runat="server" Width="100%" XDataBind="BPMDATA:fa_summary_approval_m.area_code" BorderColor="#DCDCDC" BorderWidth="1" height="100%"></aspxform:XTextBox>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td height="22">
                        预算类型编码</td>
                    <td>
                        <aspxform:XTextBox id="txtmmbudgettypecode" runat="server" Width="100%" XDataBind="BPMDATA:fa_summary_approval_m.budget_type_code" BorderColor="#DCDCDC" BorderWidth="1" height="100%"></aspxform:XTextBox>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td height="22">
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</body>
</html>
